/******************************************************************************

                          ADB UART Header File


*******************************************************************************/

#ifndef __ADB_UART_H_
#define __ADB_UART_H_

#include "GenericTypeDefs.h"
#include "Timer.h"
// *****************************************************************************
// *****************************************************************************
// Section: Function Prototypes and Macro Functions
// *****************************************************************************
// *****************************************************************************

/*MACRO used to print using UART*/
#ifdef DEBUG_ENABLED
    #define UART_Print(...) printString (__VA_ARGS__)
#else
    #define UART_Print(...)
#endif
#define UART_1 0
#define UART_2 1
#define UART_3 2
#define UART_4 3

extern BYTE data_received;
extern BOOL byte_received;

void InitUart(BYTE uart_num);
void WriteString(const CHAR *string);
void PutCharacter(const CHAR character);
void  printString (const  BYTE *format, ...);
#endif
